<?php
class CustomRouter extends Router{
	
	function connect($route, $default = array(), $params = array()) {
        Router::connect($route, $default, $params);
        Router::connect('/:locale' . $route, $default, array_merge(array('locale' => '[a-z]{3}'), $params));
    }
	
	
	function url($url = null, $full = false){
			if (!isset($url['ext'])) {
				$url['ext']='html';
			}
			return parent::url($url, $full);
	}
}